import { handleGET, handlePOST } from '@/app/api/utils';

const getMap = {
  getActivityDetailById(request: Request) {
    return Response.json({
      id: Date.now().toString(),
      name: '名称',
    })
  },
}

const postMap = {
  deleteActivityById(request: Request) {
    return Response.json({
      code: 1,
      msg: '删除成功',
    })
  },
}

export const GET = (...params) => handleGET(getMap, ...params);

export const POST = (...params) => handlePOST(postMap, ...params);

